package com.buddy.design.pattern._01factory.factorymethod;


import com.buddy.design.pattern._01factory.Course;

public class FactoryMethodTest {

    /**
     * 工厂方法模式
     */
    public static void main(String[] args){
        CourseFactory courseFactory = new JavaCourseFactory();
        Course course = courseFactory.course();
        course.record();
    }
}
